<?php

/* @var $factory \Illuminate\Database\Eloquent\Factory */

use Faker\Generator as Faker;

$factory->define(\App\Models\Order::class, function (Faker $faker) {
    $title = \Illuminate\Support\Str::random(random_int(3,8));
    $content = $faker->text;
    $price = random_int(2,50);
    $type = random_int(0,4);
    $status = 1;
    $date_time = $faker->date.' '.$faker->time;

    return [
        'title' => $title,
        'content' => $content,
        'price' => $price,
        'type' => $type,
        'status' => $status,
        'created_at' => $date_time,
        'updated_at' => $date_time,
    ];
});
